package com.walleipt.demo.ioc.conditional;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AppConfig {
	
	@Conditional(MyCondition.class)
	@Bean
	public TestConditionalBean testConditionalBean() {
		return new TestConditionalBean();
	}
}
